package interpreter.impl;

import interpreter.Node;

/***
 * 终结符表达式
 */
public class ValueNode  extends Node {
    private final String value;

    public ValueNode(String value) {
        this.value = value;
    }

    @Override
    public double interpret() {
        return Double.parseDouble(value);
    }

}
